import Layout from '@/layout'
const dispatchManage = {
  path: '/dispatchManage',
  component: Layout,
  redirect: '/dispatchManage/dispatchList',
  name: 'dispatchManage',
  meta: {
    title: '调度管理',
    icon: 'peoples',
    roles: ['ORG_USER', 'INDIVIDUAL_USER', 'SYSTEM_USER', 'TENANT_USER']
  },
  children: [
    {
      path: '/dispatchManage/dispatchList',
      component: () => import('@/views/dispatchManage/dispatchList/index.vue'),
      name: 'dispatchList',
      meta: { title: '调度列表', roles: ['ORG_USER', 'INDIVIDUAL_USER'] }
    },
    {
      path: '/dispatchManage/waybillList',
      component: () => import('@/views/dispatchManage/waybillList/index.vue'),
      name: 'waybillList',
      meta: { title: '运单列表', roles: ['ORG_USER', 'SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/dispatchManage/abnormalList',
      component: () => import('@/views/dispatchManage/abnormalList/index.vue'),
      name: 'abnormalList',
      meta: { title: '异常管理', roles: ['ORG_USER'] }
    },
    {
      path: '/dispatchManage/trackPlayback',
      component: () => import('@/views/dispatchManage/trackPlayback/index.vue'),
      name: 'trackPlayback',
      hidden: true,
      meta: { title: '轨迹回放', roles: ['ORG_USER', 'INDIVIDUAL_USER'] }
    },
    {
      path: '/dispatchManage/closeOrder',
      component: () => import('@/views/dispatchManage/closeOrder/index.vue'),
      name: 'closeOrder',
      hidden: true,
      meta: { title: '终结', roles: ['ORG_USER', 'INDIVIDUAL_USER'] }
    },
    {
      path: '/dispatchManage/wayillDetails',
      component: () => import('@/views/dispatchManage/wayillDetails/index.vue'),
      name: 'wayillDetails',
      hidden: true,
      meta: { title: '已完成运单详情', roles: ['ORG_USER', 'INDIVIDUAL_USER'] }
    }

  ]
}
export default dispatchManage
